﻿
''' <summary>
''' Những Action khi làm việc với Danh mục và nghiệp vụ
''' </summary>
''' <remarks></remarks>
    Public Enum EditMode As Integer
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
        None = 0

    ''' <summary>
    ''' Trạng thái xem danh mục hoặc Chứng từ
    ''' </summary>
    ''' <remarks></remarks>
        View = 1

    ''' <summary>
    ''' Sửa
    ''' </summary>
    ''' <remarks></remarks>
        Edit = 2

    ''' <summary>
    ''' Xóa
    ''' </summary>
    ''' <remarks></remarks>
        Delete = 3

    ''' <summary>
    ''' Thêm mới
    ''' </summary>
    ''' <remarks></remarks>
        Add = 4

    ''' <summary>
    ''' Nhân bản
    ''' </summary>
    ''' <remarks></remarks>
        Dupplicate = 5
End Enum


Public Enum AccountingObjectType As Integer

    None = 0

    ''' <summary>
    ''' Khách hàng
    ''' </summary>
    ''' <remarks></remarks>
        Customer = 1

    ''' <summary>
    ''' Nhà cung cấp
    ''' </summary>
    ''' <remarks></remarks>
        Vendor = 2

    ''' <summary>
    ''' Cả hai
    ''' </summary>
    ''' <remarks></remarks>
        Both = 3
End Enum

''' <summary>
''' Phương thức thanh toán
''' </summary>
''' <remarks></remarks>
    Public Enum PaymentMethodEnum As Integer

    ''' <summary>
    ''' Chưa thanh toán
    ''' </summary>
    ''' <remarks></remarks>
        NoPayment = 0

    ''' <summary>
    ''' Tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        Cash = 1

    ''' <summary>
    ''' Chuyển khoản
    ''' </summary>
    ''' <remarks></remarks>
        AccountTransfer = 2
End Enum

Public Enum RefType As Integer
    None = 0

    ''' <summary>
    ''' Chi tiền mat
    ''' </summary>
    ''' <remarks></remarks>
        CashPayment = 102

    ''' <summary>
    ''' Chi tiền gui
    ''' </summary>
    ''' <remarks></remarks>
        BankPayment = 202

    ''' <summary>
    ''' Thu tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        CashReceive = 101

    ''' <summary>
    ''' Thu tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        BankReceive = 201

    ''' <summary>
    ''' nhập kho mua hàng chưa thanh toán
    ''' </summary>
    ''' <remarks></remarks>
        PurchaseInvoice = 301

    ''' <summary>
    ''' nhập kho mua hàng tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        PurchaseInvoiceCash = 302

    ''' <summary>
    ''' nhập kho mua hàng tiền gửi
    ''' </summary>
    ''' <remarks></remarks>
        PurchaseInvoiceBank = 303

    ''' <summary>
    ''' Hàng mua trả lại tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        PurchaseReturn = 305

    ''' <summary>
    ''' Hàng mua trả lại tiền gửi
    ''' </summary>
    ''' <remarks></remarks>
        PurchaseReturnBank = 306


    ''' <summary>
    ''' Đơn đặt hàng
    ''' </summary>
    ''' <remarks></remarks>
        Order = 411

    ''' <summary>
    ''' Bán hàng chưa thanh toán
    ''' </summary>
    ''' <remarks></remarks>
        SaleInvoice = 401

    ''' <summary>
    ''' Bán hàng tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        SaleInvoiceCash = 402

    ''' <summary>
    ''' Bán hàng tiền gửi
    ''' </summary>
    ''' <remarks></remarks>
        SaleInvoiceBank = 403

    ''' <summary>
    ''' Hàng bán trả lại tiền mặt
    ''' </summary>
    ''' <remarks></remarks>
        SaleReturn = 405

    ''' <summary>
    ''' Hàng bán trả lại tiền gửi
    ''' </summary>
    ''' <remarks></remarks>
        SaleReturnBank = 406

    ''' <summary>
    ''' Chuyển kho
    ''' </summary>
    ''' <remarks></remarks>
        SaleTransfer = 410

    ''' <summary>
    ''' Số dư đầu khách hàng nhà cung cấp
    ''' </summary>
    ''' <remarks></remarks>
        OpeningAccountingObject = 501

    ''' <summary>
    ''' Số dư VTHH
    ''' </summary>
    ''' <remarks></remarks>
        OpeningItem = 502
End Enum

Public Enum DataFormatEnum As Integer
    StringType = 0

    CurrencyType = 1

    IntegerType = 2

    DateTimeType = 3

    DecimalType = 4
End Enum

''' <summary>
''' Kiểu dữ liệu lưu trong bảng DBOption
''' </summary>
''' <remarks></remarks>
''' hvvduong 20/11/2008
    Public Enum EnumDataType As Integer
    '0: String; 1: Number; 2: Date; 3: Boolean; 4: GUID
    TypeString = 0
    TypeNumber = 1
    TypeDate = 2
    TypeBoolean = 3
    TypeGuid = 4
End Enum

Public Enum ConvertRateOperator As Integer

    ''' <summary>
    ''' Nhân
    ''' </summary>
    ''' <remarks></remarks>
        Multiply = 0

    ''' <summary>
    ''' Chia
    ''' </summary>
    ''' <remarks></remarks>
        Divide = 1
End Enum


Public Enum ActionEnum As Integer
    View = 0

    Use = 1

    AddNew = 2

    Edit = 3

    Delete = 4

    Print = 5
End Enum


Public Enum PermissionGroupEnum

    Dictionary = 0

    ImportExport = 2

    Business = 3

    Opening = 4

    Cash = 5

    INInward = 6

    OUTOutward = 7

    System = 8
End Enum

Public Enum PermissionEnum
    All = 0

#Region "Group"


    Dictionary = 1

    ImportExport = 2

    Business = 3

    Opening = 4

    Cash = 5

    INInward = 6

    OUTOutward = 7

    System = 8

#End Region

#Region "Danh muc"

    ''' <summary>
    ''' Kho
    ''' </summary>
    ''' <remarks></remarks>
        Stock = 9

    ''' <summary>
    ''' Thuoc
    ''' </summary>
    ''' <remarks></remarks>
        Item = 10

    ''' <summary>
    ''' Loai thuoc
    ''' </summary>
    ''' <remarks></remarks>
        ItemCategory = 11

    ''' <summary>
    ''' Don vi tinh
    ''' </summary>
    ''' <remarks></remarks>
        Unit = 12

    ''' <summary>
    ''' TK Ngan hang
    ''' </summary>
    ''' <remarks></remarks>
        BankAccount = 13

    ''' <summary>
    ''' Nhan vien
    ''' </summary>
    ''' <remarks></remarks>
        Employee = 14

    ''' <summary>
    ''' Phong ban
    ''' </summary>
    ''' <remarks></remarks>
        Department = 15

    ''' <summary>
    ''' KH/NCC
    ''' </summary>
    ''' <remarks></remarks>
        AccountingObject = 16

    ''' <summary>
    ''' Loai KH/NCC
    ''' </summary>
    ''' <remarks></remarks>
        AccountingObjectCategory = 17

#End Region

#Region "Import/Export"

    ImportData = 20

    ExportData = 21

#End Region

#Region "Opening"

    AccountingObjectOpening = 30

    ItemOpening = 31

#End Region

#Region "Cash"

    CashPayment = 40

    CashReceive = 41

#End Region

#Region "INInward"

    PurchaseOrder = 50

    PurchaseInvoice = 51

    PurchaseReturn = 52

#End Region

#Region "OUTOutward"

    Order = 60

    SaleInvoice = 61

    SaleReturn = 62

    ItemTransfer = 63

#End Region

#Region "System"

    User = 70

    UserGroup = 71

    PermissionAssign = 72

    AuditLog = 73

    SettingApplication = 74

    UpgradeDatabase = 75

#End Region
End Enum

Public Enum LogInStatus As Integer
    UserLock = 0
    LogInInfoWrong = 1
    Success = 2
End Enum
